package com.feiniu.api.servlet;

import com.feiniu.api.util.PropertiesUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import java.util.Properties;

public class InitConfigureServlet extends HttpServlet {
	private static final long serialVersionUID = -6287081091893950069L;
	private static final Logger LOGGER = LoggerFactory.getLogger(InitConfigureServlet.class);
	public static Properties configureProperties;

	@Override
	public void init(ServletConfig config) throws ServletException {
		LOGGER.info("****************InitConfigureServlet -> init*****************************");
		configureProperties = PropertiesUtil.getInstance().getProperties("application.properties");
		LOGGER.info(configureProperties.toString());
		LOGGER.info("****************InitConfigureServlet -> init*****************************");
	}

}
